package com.mutouren.modules.org.model;

import java.util.Date;

import com.mutouren.common.entity.ValidState;

public class Role {
	private Integer roleId;
	private Integer appId;
	private String roleName;
	private String description;
	private ValidState validState;
	private Date createTime;
	private Date updateTime;
	
	private String appName;
	
	public Role() {
		this.validState = ValidState.Normal;
	}		
	public Integer getRoleId() {
		return roleId;
	}
	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}
	public Integer getAppId() {
		return appId;
	}
	public void setAppId(Integer appId) {
		this.appId = appId;
	}
	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getDisplayValidState() {
		return ValidState.display(validState);
	}	
	public ValidState getValidState() {
		return validState;
	}
	public void setValidState(ValidState validState) {
		this.validState = validState;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getAppName() {
		return appName;
	}
	public void setAppName(String appName) {
		this.appName = appName;
	}

}
